/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package healthcaresystem.controler;

import healthcaresystem.services.LoginService;

/**
 *
 * @author Veho
 */
public class LoginController {

    private LoginService loginService;

    public LoginController() {
        loginService = new LoginService();
    }

    public boolean checkUser(String user, String pwd) {
        boolean re = false;
        String sql = "select * from user where username='" + user + "' and pwd='" + pwd + "'";
        if (this.loginService.checkUser(sql) != null) {
            re = true;
        }

        return re;
    }

}
